home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
SYMBMATH.H46
< prev
next >
Wrap
Text File
|
1993-11-07
|
859b
|
31 lines
4.14 Database
After you creat a database file as a library (external function),
you can search your database by finding its function value.
4.14.1 Phone No. Database
If you have created the database file "phoneNo.(x)" as follow:
-------------------------------------
phoneno("huang") := "6974643"
phoneno("john") := "12345"
--------------------------------------
you can find out phone No. of someone from the phone No. database
file "phoneNo.(x)" by the external function
phoneno("name")
Example 4.14.1
find out phone No. of huang.
IN: phoneno("huang")
OUT: "6974643"
4.14.2 Chemical Reaction Database
You can predict products for chemical reactions from the
database file "react.(x)".
Example 4.14.2.
What are the products when HCl + NaOH react ?
IN: react(HCl+NaOH)
OUT: H2O + NaCl